package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-15
 * Time: 21:25
 */
public class Cat extends Animal{
    public Cat(String name, int age) {
        super(name, age);//调用了父类的构造方法
        System.out.println("构造方法--Cat");
    }
    public void mimi(){
        System.out.println("小猫在咪咪叫");
    }
    static {
        System.out.println("static--Cat");
    }
    {
        System.out.println("实例代码块--Cat");
    }
}
